package com.kuangshenJVM.chapter04;

import java.io.File;

public class test04 {
//-Xms1m -Xmx8m -XX:+HeapDumpOnStackOverflowError
//-Xms1m -Xmx8m -XX:+HeapDumpOnOutOfMemoryError
    //-Xms8m -Xmx16m -XX:+PrintGCDetails
    public static void main(String[] args) {
        int count = 0;

        try{
            new test04().a();
            count +=1;
        }catch (Error e){
            System.out.println("count == " + count);
            e.printStackTrace();
        }


        //new File() 不停的创建文件也是这样

        new Thread().start();
    }
    public void a(){
        b();
    }
    public void b(){
        a();
    }

}
